|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.databases.configurations.DatabaseQueryConfiguration
public class DatabaseQueryConfiguration
A configuration for a database query.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.vtp.framework.databases.configurations.DatabaseConstants |
|---|
NAME_COLUMN, NAME_COMPARISON, NAME_CRITERIA, NAME_DATABASE, NAME_DRIVER, NAME_JDBC_DATABASE, NAME_JNDI_DATABASE, NAME_MAPPING, NAME_NAME, NAME_PASSWORD, NAME_QUERY, NAME_RESULT_CARDINALITY, NAME_RESULT_LIMIT, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TABLE, NAME_TIMEOUT, NAME_TYPE, NAME_URI, NAME_URL, NAME_USERNAME, NAME_VALUE, NAMESPACE_URI |
| Constructor Summary | |
|---|---|
DatabaseQueryConfiguration()
Creates a new DatabaseQueryConfiguration. |
|
| Method Summary | |
|---|---|
void |
addCriteria(DatabaseCriteriaConfiguration criteria)
Adds a criteria to this query. |
void |
addMapping(DatabaseMappingConfiguration mapping)
Adds a mapping to this query. |
DatabaseCriteriaConfiguration[] |
getCriteria()
Returns the criteria specified for the query. |
java.lang.String |
getDatabase()
Returns the name of the database to query. |
DatabaseMappingConfiguration[] |
getMappings()
Returns the mappings specified to the query. |
int |
getQueryTimeout()
Returns the maximum number of seconds to wait for the query. |
int |
getResultLimit()
Returns the maximum number of records to return. |
java.lang.String |
getResultName()
Returns the name of the result to populate. |
java.lang.String |
getResultType()
Returns the name of the type of result to create. |
java.lang.String |
getTable()
Returns the name of the table to query. |
boolean |
isResultArray()
Returns true if multiple records should be returned. |
void |
load(org.w3c.dom.Element configurationElement)
Loads the configuration information from the specified XML element. |
void |
removeCriteria(DatabaseCriteriaConfiguration criteria)
Removes a criteria from this query. |
void |
removeMapping(DatabaseMappingConfiguration mapping)
Removes a mapping from this query. |
void |
save(org.w3c.dom.Element configurationElement)
Saves the configuration information into the supplied XML element. |
void |
setDatabase(java.lang.String database)
Sets the name of the database to query. |
void |
setQueryTimeout(int queryTimeout)
Sets the maximum number of seconds to wait for the query. |
void |
setResultArray(boolean resultArray)
Changes the multiple records setting. |
void |
setResultLimit(int resultLimit)
Sets the maximum number of records to return. |
void |
setResultName(java.lang.String resultName)
Sets the name of the result to populate. |
void |
setResultType(java.lang.String resultType)
Sets the name of the type of result to create. |
void |
setTable(java.lang.String table)
Sets the name of the table to query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseQueryConfiguration()
| Method Detail |
|---|
public java.lang.String getDatabase()
public void setDatabase(java.lang.String database)
database - The name of the database to query.public java.lang.String getTable()
public void setTable(java.lang.String table)
table - The name of the table to query.public java.lang.String getResultName()
public void setResultName(java.lang.String resultName)
resultName - The name of the result to populate.public java.lang.String getResultType()
public void setResultType(java.lang.String resultType)
resultType - The name of the type of result to create.public boolean isResultArray()
public void setResultArray(boolean resultArray)
resultArray - True if multiple records should be returned.public int getResultLimit()
public void setResultLimit(int resultLimit)
resultLimit - The maximum number of records to return.public DatabaseCriteriaConfiguration[] getCriteria()
public void addCriteria(DatabaseCriteriaConfiguration criteria)
criteria - The criteria to add.public void removeCriteria(DatabaseCriteriaConfiguration criteria)
criteria - The criteria to remove.public DatabaseMappingConfiguration[] getMappings()
public void addMapping(DatabaseMappingConfiguration mapping)
mapping - The mapping to add.public void removeMapping(DatabaseMappingConfiguration mapping)
mapping - The mapping to remove.public int getQueryTimeout()
public void setQueryTimeout(int queryTimeout)
queryTimeout - The maximum number of seconds to wait for the query.public void load(org.w3c.dom.Element configurationElement)
IConfiguration
load in interface IConfigurationconfigurationElement - The element to load the configuration from.public void save(org.w3c.dom.Element configurationElement)
IConfiguration
save in interface IConfigurationconfigurationElement - The element to save the configuration to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||